package com.yxw.yxnet_cd_center.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @desc: 分页模板
 * @author: liuxin
 * @date: 2023.09.12
 */
@ApiModel(value = "分页通用模板")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageVO<T> implements Serializable {
    private static final long serialVersionUID = 1021292195884707559L;
    /**
     * 总记录数
     */
    @ApiModelProperty("总记录数")
    private long totalCount;
    /**
     * 每页记录数
     */
    @ApiModelProperty("每页记录数")
    private long pageSize;
    /**
     * 总页数
     */
    @ApiModelProperty("总页数")
    private long totalPage;
    /**
     * 当前页数
     */
    @ApiModelProperty("当前页数")
    private long currPage;
    /**
     * 列表数据
     */
    @ApiModelProperty("列表数据")
    private List<T> list;
}